package com.iwhalecloud.bss.kite.cucc.dataservice.mapper.template.scene;

import com.iwhalecloud.bss.kite.cucc.client.dto.scene.CuccAttrChgTempDTO;
import com.iwhalecloud.bss.kite.cucc.dataservice.entity.AttrChangeTemp;
import com.ztesoft.bss.base.extmapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CuccAttrChgTempMapper extends BaseMapper<AttrChangeTemp> {
    /**
     * 插入场景模版属性变动信息
     *
     * @param attrChgTemp
     * @return
     */
    int insertAttrChgTemp(@Param("attrChgTemp") List<CuccAttrChgTempDTO> attrChgTemp);

    List<CuccAttrChgTempDTO> selectAttrChgByTempId(@Param("sceneTemplId") String sceneTemplId);

    String selectAttrValueInTempl(@Param("sceneTemplId") String sceneTemplId, @Param("attrCode") String attrCode);

    String selectAttrValueByInstId(@Param("sceneTemplId") String sceneTemplId, @Param("instId") String instId, @Param("attrCode") String attrCode);

}
